<?php if($show_result):?>
    <?php include_component('test', 'showresult', array('result_id' => $sf_user->getAttribute('result_id')))?>
<?php else:?>
    <?php include_partial('testform', array('question' => $question, 'form' => $form, 'result_answer_prev' => $result_answer_prev, 'result_answer_next' => $result_answer_next))?>
<?php endif;?>